package com.woniu.controller;

import com.woniu.dto.CaseDto;
import com.woniu.service.CaseService;
import com.woniu.utils.ResponseUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: zcy
 * @Create: 2025/10/30 19:03
 */
@RestController
@RequestMapping("/case")
public class CaseController {
    @Resource
    private CaseService caseService;
    /*
    * 添加病例
     */
    @PostMapping("/add")
    public ResponseUtil add(@RequestBody CaseDto caseDto){
        return caseService.add(caseDto);

    }
}
